POST / api / v2 / built -in -system - ppm / dashboard / delivery / project / search
入参：
{
    "projectSource": "研究院", "status": "延期"
}
// const params = {
//     projectSource:'研究院',
//     status:'延期'
// }
post('/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params)
返回参数：





function convertCamelToUnderscore(obj) {
    const result = {};
    for (const key in obj) {
        if (obj.hasOwnProperty(key)) {
            const newKey = key.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
            result[newKey] = obj[key];
        }
    }
    return result;
}

setTimeout(() => {

    getALJXZ()
    getALYJF()
    getALYQ()
    getYJYJXZ()
    getYJYYQ()
    getYJYYJF()

}, 1000)

function getALJXZ() {
    // 傲林进行中for循环
    const params = {
        projectSource: '傲林',
        status: '进行中'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_1nke017wba_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_1nke017wba_props']['dataSets']['source'] = []
    })
}
function getALYJF() {
    // 傲林已交付or循环
    const params = {
        projectSource: '傲林',
        status: '已交付'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_mxkm63shkm_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_mxkm63shkm_props']['dataSets']['source'] = []
    })
}
function getALYQ() {
    // 傲林延期for循环
    const params = {
        projectSource: '傲林',
        status: '延期'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_nz05ypm8f8_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_nz05ypm8f8_props']['dataSets']['source'] = []
    })
}

// 研究院进行中for循环
function getYJYJXZ() {
    const params = {
        projectSource: '研究院',
        status: '进行中'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_81r5sbd9x1_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_81r5sbd9x1_props']['dataSets']['source'] = []
    })

}
// 研究院已交付for循环
function getYJYYJF() {
    const params = {
        projectSource: '研究院',
        status: '已交付'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_m9uv29m9tv_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_m9uv29m9tv_props']['dataSets']['source'] = []
    })

}
// 研究院延期for循环
function getYJYYQ() {
    const params = {
        projectSource: '研究院',
        status: '延期'
    }
    post('/solution-ppm/api/v2/built-in-system-ppm/dashboard/delivery/project/search', params).then(({ data }) => {
        let newData = data.map(item => convertCamelToUnderscore(item));
        blockPropState['vid_nzf4g7b15q_props']['dataSets']['source'] = newData;
    }).catch(()=>{
        blockPropState['vid_nzf4g7b15q_props']['dataSets']['source'] = []
    })

}











